package com.xxwu.messagequeue.mqclient;

import lombok.Data;

import java.io.IOException;

@Data
public class ConnectionFactory {
    private String host;
    private int port;

    public Connection createConnection() throws IOException {
        return new Connection(host, port);
    }
}
